home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / setprid.z / setprid
Encoding:
Text File  |  2002-10-03  |  2.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. sssseeeettttpppprrrriiiidddd((((2222))))                                                          sssseeeettttpppprrrriiiidddd((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      setprid - set project ID
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
  14.  
  15.      iiiinnnntttt sssseeeettttpppprrrriiiidddd((((pppprrrriiiidddd____tttt pppprrrriiiidddd))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      The _s_e_t_p_r_i_d function changes the project ID for the array session
  19.      containing the current process to the value specified by _p_r_i_d.
  20.  
  21.      Ordinarily, the project ID for a new array session is inherited from the
  22.      array session of the process that created it.  However, when the array
  23.      session is created as part of a new login (or moral equivalent, such as a
  24.      batch job or _r_s_h(1)), it may be appropriate to assign a new project ID,
  25.      such as a default project ID associated with the user that is logging in.
  26.      The _s_e_t_p_r_i_d function can be used to accomplish this.
  27.  
  28.      The new project ID must be a positive value.  The process invoking
  29.      _s_e_t_p_r_i_d must have superuser privileges.
  30.  
  31.      For more information on projects and project IDs, see _p_r_o_j_e_c_t_s(5).
  32.  
  33. EEEERRRRRRRROOOORRRRSSSS
  34.      _s_e_t_p_r_i_d may fail if one or more of these conditions are true:
  35.  
  36.      EEEEIIIINNNNVVVVAAAALLLL    _p_r_i_d is negative
  37.  
  38.      EEEEPPPPEEEERRRRMMMM     The current process does not have superuser privileges.
  39.  
  40. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  41.      getprid(2), newarraysess(2), array_sessions(5), projects(5).
  42.  
  43. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  44.      Upon successful completion, _s_e_t_p_r_i_d returns a value of 0.  Otherwise, a
  45.      value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.